//
//  MyFirstPlugin.m
//  CordovaDemo
//
//  Created by menchao on 2018/10/24.
//  Copyright © 2018年 cedarhd. All rights reserved.
//

#import "MyFirstPlugin.h"

@implementation MyFirstPlugin


- (void)greetHello:(CDVInvokedUrlCommand*)command{
    NSString* name = [[command arguments] objectAtIndex:0];
    NSString* msg = [NSString stringWithFormat: @"Hello, %@", name];
    
    CDVPluginResult* result = [CDVPluginResult
                               resultWithStatus:CDVCommandStatus_OK
                               messageAsString:msg];
    
    [self.commandDelegate sendPluginResult:result callbackId:command.callbackId];
    
}

@end
